package cn.lanqiao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: yhz
 * @Date: 上午 10:22 2022/3/25
 */
@Controller
public class ParamController {
    @RequestMapping("/testServletApi")
    public String testServletApi(HttpServletRequest request) {
        String uname = request.getParameter("uname");
        String pwd = request.getParameter("pwd");
        System.out.println(uname+pwd);
        return "testParam";
    }
    @RequestMapping("/testParam")
    public String testParam(String uname,String pwd) {
        System.out.println(uname+pwd);
        return "testParam";
    }
}
